package com.rainbow.emum

enum class ResultEnum {

    UNKONW_ERROR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    FAIL(-2, "失败"),
    PRIMARY_SCHOOL(100, "我猜你可能还在上小学"),
    MIDDLE_SCHOOL(101, "你可能在上初中"),
    SECKILL_OVER(102, "秒杀结束"),
    CODE_ERROR(103, "验证码验证失败"),
    SESSION_INVALID(104, "session失效"),
    ACCESS_DENIED(105, "您没有该权限！");

    var code: Int? = null
    var msg: String? = null

    constructor(code: Int, msg: String) {
        this.code = code
        this.msg = msg
    }
}